{% extends "tpl_detail_base.html" %}
{% block javascript %}
<script type="text/javascript" src="http://ditu.google.cn/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initFunc()
 {
	var options = {
		      zoom: 14,
		      center: new google.maps.LatLng(32.64, 110.735),
		      mapTypeControl: false,
		      mapTypeId: google.maps.MapTypeId.ROADMAP
	 }
	var map = new google.maps.Map(d.getElementById("map_canvas"),options);
	var pos = new google.maps.LatLng(32.639996, 110.73494);
	var marker = new google.maps.Marker({
        position: pos, 
        map: map,
        title:"{{address}}"
    });
	var contentString = "<h2>{{hospital}}</h2><h3>{{address}}</h3>";
	var infowindow = new google.maps.InfoWindow({
        content: contentString
    });
	google.maps.event.addListener(marker, 'click', function() {
	      infowindow.open(map,marker);
	    });
 }
</script>
{{ block.super }}
{% endblock %}
{% block slides %}
<div id="map_canvas"></div>
{% endblock %}
{% block nodecontent %}
<div class="article">
	<div class="title">地址:<span>{{address}}</span></div>
	<div class="title">联系电话:<span>{{telephone}}</span></div>
</div>
{% endblock %}